import Main from '@/views/main.vue'

export default [
    {
        path: '/demo',
        name: 'demo',
        meta: {
            title: '示例代码',
            icon: 'el-icon-menu'
        },
        component: Main,
        children: [
            {
                path: 'table',
                name: 'table',
                meta: {
                    title: '表格',
                    icon: 'el-icon-menu'
                },
                component: () => import('@/views/demo/table/table.vue')
            },
            {
                path: 'add-or-update-form',
                name: 'add-or-update-form',
                meta: {
                    title: '单独表单',
                    icon: 'el-icon-menu'
                },
                component: () => import('@/views/demo/table/add-or-update-form.vue')
            },
            {
                path: 'editor',
                name: 'editor',
                meta: {
                    title: 'WangEditor',
                    icon: 'el-icon-menu'
                },
                component: () => import('@/views/demo/editor.vue')
            },
            {
                path: 'singleUpload',
                name: 'singleUpload',
                meta: {
                    title: 'singleUpload',
                    icon: 'el-icon-menu'
                },
                component: () => import('@/views/demo/upload/OSS直传.vue')
            },
            {
                path: 'OssSimpleUpload',
                name: 'OssSimpleUpload',
                meta: {
                    title: '普通上传',
                    icon: 'el-icon-menu'
                },
                component: () => import('@/views/demo/upload/普通上传.vue')
            },
            {
                path: 'tabs',
                name: 'tabs',
                meta: {
                    title: 'tabs动态组件',
                    icon: 'el-icon-menu'
                },
                component: () => import('@/views/demo/tabs/index.vue')
            },
            {
                path: 'sku',
                name: 'sku',
                meta: {
                    title: 'sku',
                    icon: 'el-icon-menu'
                },
                component: () => import('@/views/demo/sku.vue')
            },
            {
                path: 'sku2',
                name: 'sku2',
                meta: {
                    title: 'sku2',
                    icon: 'el-icon-menu'
                },
                component: () => import('@/views/demo/sku2.vue')
            },
            {
                path: 'scanpay',
                name: 'scanpay',
                meta: {
                    title: 'scanpay',
                    icon: 'el-icon-menu'
                },
                component: () => import('@/views/demo/scanpay.vue')
            }
        ]
    }
]
